package com.netmi.myvideopicker.utils;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

import com.netmi.myvideopicker.PlayVideoActivity;
import com.netmi.myvideopicker.SelectVideoActivity;

/**
 * 类描述：
 * 创建人：tgw
 * 创建时间：2020/7/24
 * 修改备注：
 */
public class JumpActivityUtils {

    public static void startActivity(Activity context, Class<?> activity) {
        Intent intent = new Intent(context, activity);
        context.startActivity(intent);
    }

    public static void startActivity(Activity context, Class<?> activity, int request, Bundle bundle) {
        Intent intent = new Intent(context, activity);
        if (bundle != null) {
            intent.putExtras(bundle);
        }
        if (request != 0) {
            context.startActivityForResult(intent, request);
        } else {
            context.startActivity(intent);
        }
    }


}
